# -*- coding = utf-8 -*-
# @Time : 2021/4/30 21:23
# @Author : 龙王赘婿_彪少
# @File : demo05.py
# @Software: PyCharm

def function():
    print("人生苦短，我用python")

function()

def function2(a,b):
    print(a+b)

function2(1,2)
function2("sdfsd","sdfs")
# function2("sdfsd",12) #报错

def function3(a,b):
    return a+b

print(function3(1,12))

def function4(a,b):
    return a//b, a%b

sh,yu = function4(12,7)
print(sh,yu)

c = 10
#访问全局变量关键字
def function5():
    global c
    c = 1